package com.baseweb.webadmin.alipay.config;

/* *
 *类名：AlipayConfig
 *功能：基础配置类
 *详细：设置帐户有关信息及返回路径
 *版本：3.4
 *修改日期：2016-03-08
 *说明：
 *以下代码只是为了方便商户测试而提供的样例代码，商户可以根据自己网站的需要，按照技术文档编写,并非一定要使用该代码。
 *该代码仅供学习和研究支付宝接口使用，只是提供一个参考。
 */

public class AlipayConfig {
	
//↓↓↓↓↓↓↓↓↓↓请在这里配置您的基本信息↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

	// 合作身份者ID，签约账号，以2088开头由16位纯数字组成的字符串，查看地址：https://b.alipay.com/order/pidAndKey.htm
	public static String partner = "2088521858498912";
	
	// 收款支付宝账号，以2088开头由16位纯数字组成的字符串，一般情况下收款账号就是签约账号
	public static String seller_id = partner;

	//商户的私钥,需要PKCS8格式，RSA公私钥生成：https://doc.open.alipay.com/doc2/detail.htm?spm=a219a.7629140.0.0.nBDxfy&treeId=58&articleId=103242&docType=1
	public static String private_key = "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAPQhXUmyAqz7PrjBKwPr1osqPjywWsr0gXSFKXfH9Ijox2zK3w/h8J1n/RIBusjacu91ZXKLOtX03mkhIwo/6uSQ5Hr7JEn3aqEXEaFj/dNwbQDLD7sb9R38FUSG6P41k7TO0TfcBaHnjtyJf49I8ZWn/oCbpbUawJmca/LOUQDZAgMBAAECgYAhuR4m2PUvqgEvClgD0acwUCSKw523HXFohCCHUFLCOs2ZhKiti/tt8vhtbVm89xgbZe8elIcLGSlEAnTRrKSoqx3gGaFoV38j88PBoC+IbopFKNyicqtISxLYvXQuSVruMPpDc3CWy+VMKBlV9DAdv+Ytk8Z0qHyYMCNxitwGgQJBAPqpQkAwjHIiuRsHNfg0TA2w3prvo8lsmgBf+pglnaXzohxqaiaiodaRdkANbJoaTXNiDIAlbvOsAHBV1gGoeskCQQD5VH71VOduY/H4JYbv5a0bOnzfHWyZmnHgE6ETo8xQIp3iJm5OpuOMa5jdaQdLjiD7zYfRhm0mSBLGWlPuzU2RAkEAwuSPinE1AhlVa1pz8ARZjduTeUwSQS6bnucBZQL6TGneBdIHrvqMctSu6KaHZlpFFg2KQqjYV8XIoY9b0fY5YQJAYOf2cGQPj1hJM6liSNt77JlO72kATLM6j10RvhBr2Lmbo8pMFUXIK0umnmez7inPqA66OzWENtzMb0usU6R4AQJBAPO4eFVig3C6m7w9q7gh5et1NdrtSTlRpgFmh1uGB3yZ4ptSKVlOktFIDEKM85s5MXbphbi9AUWHRbXD1f/7QnI=";
	
	// 支付宝的公钥,查看地址：https://b.alipay.com/order/pidAndKey.htm
	public static String alipay_public_key  = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCnxj/9qwVfgoUh/y2W89L6BkRAFljhNhgPdyPuBV64bfQNN1PjbCzkIM6qRdKBoLPXmKKMiFYnkd6rAoprih3/PrQEB/VsW8OoM8fxn67UDYuyBTqA23MML9q1+ilIZwBC2AQ2UBVOrFXfFl75p6/B5KsiNG9zpgmLCUYuLkxpLQIDAQAB";

	// 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
	public static String notify_url = "http://121.196.204.11/alipay_notify_url";

	// 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
	public static String return_url = "http://121.196.204.11/alipay_return_url";

	// 签名方式
	public static String sign_type = "RSA";
	
	// 调试用，创建TXT日志文件夹路径，见AlipayCore.java类中的logResult(String sWord)打印方法。
	public static String log_path = "/tmp/";
		
	// 字符编码格式 目前支持 gbk 或 utf-8
	public static String input_charset = "utf-8";
		
	// 支付类型 ，无需修改
	public static String payment_type = "1";
		
	// 调用的接口名，无需修改
	public static String service = "create_direct_pay_by_user";


//↑↑↑↑↑↑↑↑↑↑请在这里配置您的基本信息↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
	
//↓↓↓↓↓↓↓↓↓↓ 请在这里配置防钓鱼信息，如果没开通防钓鱼功能，为空即可 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
	
	// 防钓鱼时间戳  若要使用请调用类文件submit中的query_timestamp函数
	public static String anti_phishing_key = "";
	
	// 客户端的IP地址 非局域网的外网IP地址，如：221.0.0.1
	public static String exter_invoke_ip = "";
		
//↑↑↑↑↑↑↑↑↑↑请在这里配置防钓鱼信息，如果没开通防钓鱼功能，为空即可 ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑

	//APP新配置
	//初始化的AlipayClient请求地址
	public static String ALIPAY_CLIENT_URL = "https://openapi.alipay.com/gateway.do";

	// 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
	public static String app_notify_url = "http://121.196.204.11/appApiPay/payNotify";
	// 签名方式
	public static String app_sign_type = "RSA2";

	public static String app_app_id = "2017022405848198";
	//APP支付宝公钥
	public static String app_public_key="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwQPcWZUekoH7pWEo5oBQpKYr7bJBSGSvakZAZ+q4epAAGTbXK7cwy8iht+MvLJ9sufetUbEsyE9XR5jXPDLx7NxVkfBSYUZZsGeNcoJrITbWEBJ0RUmi1rMgZx7uZ5VxO9YoJUwyv95mAu/62xtofIDHrGljXfHu7yA8iyxZ+zyk1PHtZ64qoKe2mGYs9fAAdOt4WByRRDji/DCLHHmfUd73y0azLgM//zhDpn4Hv2ezN600SK8TgGyvjS70z1qWSHxwdxmGbNzmtX6F17IJ1GTwlOqwX98Pik875RW1QHboEXCrtNhMyxkaH65um1pepZs/pum9D3sy8cOA029yEQIDAQAB";

	//APP商户私钥
	public static String app_private_key="MIIEuwIBADANBgkqhkiG9w0BAQEFAASCBKUwggShAgEAAoIBAQDPqXW314brkeSru52PsGJjBOBY3ewSAwlyCel9zrvswyL0/1EKy2wV5bizj8fptWH7IHroiM6XUQxKjVhbCKUZU2Y2/8QUrMgUKgydzerx38ztyGINRSRRoYNYtM9ugxmXN5TiAGYLbkgryW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